package com.summer.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer502
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "tb_userinfo")
@ApiModel(description = "用户基本信息类", value = "用户基本信息类")

public class TbUserinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id(主键)
     */

    @ApiModelProperty(name = "user_id", value = "id(主键)")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 学号
     */
    @ApiModelProperty(name = "student_num", value = "学号")

    @TableField("student_num")
    private String studentNum;

    /**
     * 姓名
     */
    @ApiModelProperty(name = "name", value = "姓名")

    private String name;

    /**
     * 电话
     */
    @ApiModelProperty(name = "phone", value = "电话")

    private String phone;

    /**
     * 学院
     */
    @ApiModelProperty(name = "college", value = "学院")

    private String college;

    /**
     * 状态
     */
    @ApiModelProperty(name = "state", value = "状态")

    private Integer state;

    /**
     * 地址
     */
    @ApiModelProperty(name = "address", value = "地址")

    private String address;

    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")

    private String remark;

    /**
     * 专业
     */
    @ApiModelProperty(name = "major", value = "专业")

    private String major;

    /**
     * 年级
     */
    @ApiModelProperty(name = "grade", value = "年级")

    private String grade;

    /**
     * 权限id
     */
    @TableField("role_id")
    @ApiModelProperty(name = "roleId", value = "权限id")

    private Integer roleId;

    /**
     * 昵称
     */
    @ApiModelProperty(name = "nickname", value = "昵称")

    private String nickname;

    /**
     * openid
     */
    @ApiModelProperty(name = "openid", value = "openid")

    private String openid;

    /**
     * 头像
     */
    @ApiModelProperty(name = "head_portrait", value = "头像")

    @TableField("head_portrait")
    private String headPortrait;

    /**
     * sessionKey
     */
    @ApiModelProperty(name = "sessionKey", value = "sessionKey")

    @TableField("sessionKey")
    private String sessionKey;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "create_time", value = "创建时间")

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date create_time;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "update_time", value = "修改时间")

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date update_time;

    /**
     * 是否删除
     */
    @ApiModelProperty(name = "is_delete", value = "是否删除")

    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(name = "user_pwd", value = "用户密码")
    private String user_pwd;
}
